package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class OverlapsPredicatePart implements CaseOperand {

    private int beginIndex;
    private int endIndex;
    private RowValuePredicand rowValuePredicand1;
    private RowValuePredicand rowValuePredicand2;

    public OverlapsPredicatePart(RowValuePredicand rowValuePredicand1, RowValuePredicand rowValuePredicand2) {
        this.beginIndex = rowValuePredicand1.getBeginIndex();
        this.endIndex = rowValuePredicand2.getEndIndex();
        this.rowValuePredicand1 = rowValuePredicand1;
        this.rowValuePredicand2 = rowValuePredicand2;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public RowValuePredicand getRowValuePredicand1() {
        return rowValuePredicand1;
    }

    public RowValuePredicand getRowValuePredicand2() {
        return rowValuePredicand2;
    }

}
